package config

type Mysql struct {
	Host     string
	Port     int64
	User     string
	Password string
	Database string
}

type Redis struct {
	Host     string
	Port     int64
	Password string
}

type Elasticsearch struct {
	Host string
	Port int64
}

type MongoDB struct {
	Host     string
	Port     int64
	User     string
	Password string
}

type NaCos struct {
	NamespaceId string
	Host        string
	Port        int64
	DataId      string
	Group       string
	Address     string
}
type Mqtt struct {
	Host        string
	Port        int64
	SetClientId string
}

type Minio struct {
	Host            string
	Port            int64
	AccessKeyID     string
	SecretAccessKey string
	BucketName      string
}
type Oss struct {
	AccessKeyID     string
	SecretAccessKey string
	WithRegion      string
	Bucket          string
}
type Alipay struct {
	AppId      string
	PrivateKey string
}
type Baidu struct {
	AK string
	SK string
}
type AppConfig struct {
	Mysql         `json:"mysql"`
	Redis         `json:"redis"`
	Elasticsearch `json:"elasticsearch"`
	MongoDB       `json:"mongoDB"`
	NaCos         `json:"naCos"`
	Mqtt          `json:"mqtt"`
	Minio         `json:"minio"`
	Oss           `json:"oss"`
	Alipay        `json:"alipay"`
	Baidu         `json:"baidu"`
}
